<?php 
require_once '../include.php';

header('content-type:text/html;charset=utf-8');

@$page=$_REQUEST['page']?(int)$_REQUEST['page']:1;
$pageSize=8;
$rows=getCateByPage($page,$pageSize);
$loopCounts=ceil($totalRows/2);
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>BAC-柏澳景观-生态人居领导者</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="page">
   <img class="img-responsive" src="img/title2.jpg">
	  <div class="brand">
        <!-- Slider -->
        <div class="swiper-container" style="padding-bottom:0rem">
            <!-- Buttons -->
            <p class="buttons-row" style="margin-top:0rem;">
                <a href="aboutus.php" class="title-index" style="">关于柏澳</a>|
                <a href="customer.php" class="title-index" style="">合作客户</a>|
                <a href="information.php" class="title-index" style="">行业资讯</a>|
                <a href="brand.php" class="title-index" style="">旗下品牌</a>|
                <a href="contactus.php" class="title-index" style="">联系我们</a>
            </p>
            <div class="swiper-wrapper">
                <div class="swiper-slide img-responsive"><img src="img/homepage.jpg" alt=""></div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
        <!--card-->
		<img class="img-responsive" src="img/title3.jpg">
		<ul style="padding-left:9px; padding-right:9px;>
		<?php for($i=0;$i<$loopCounts;$i++){ ?>
			<li class="item-content-index" >
				<div class="my-item-inner" style="background:gainsboro;">
					<div class="item-title">
							<a href='detail.php?cId=<?php echo $rows[2*$i]['id']?>'><img class="example-img" src="../admin/uploads/<?php echo $rows[2*$i]['bPicPath'];?>"></a>
							<a href="detail.php?cId=<?php echo $rows[2*$i]['id']?>"><img class="example-img" src="../admin/uploads/<?php echo $rows[2*$i]['mPicPath'];?>"></a>
							<?php if($totalRows>(2*$i)+1):?>
								<a href='detail.php?cId=<?php echo $rows[(2*$i)+1]['id']?>'><img class="example-img" src="../admin/uploads/<?php echo $rows[(2*$i)+1]['bPicPath'];?>"></a>
								<a href="detail.php?cId=<?php echo $rows[(2*$i)+1]['id']?>"><img class="example-img" src="../admin/uploads/<?php echo $rows[(2*$i)+1]['mPicPath'];?>"></a>
							<?php endif;?>
					</div>
				</div>
			</li>
		<?php } ?>
		</ul>	
		</div>
        <!--sheet-->
        <!--页脚-->
        <div>
            <nav class="bar bar-tab" style="background:#a8b60b;z-index: 9999;">
                <a class="tab-item active" style="color:#fff; border:1px dashed #FFFFFF" href="index.php">
                    <span class="icon icon-home"></span>
                    <span class="tab-label">首页</span>
                </a>
                <a class="tab-item" style="color:#fff;border:1px dashed #FFFFFF" href="quotation.php">
                    <span class="icon icon-card"></span>
                    <span class="tab-label">申请报价</span>
                </a>
                <a class="tab-item" style="color:#fff;border:1px dashed #FFFFFF" href="message.php">
                    <span class="icon icon-message"></span>
                    <span class="tab-label">留言咨询</span>
                </a>
                <a class="tab-item" style="color:#fff;border:1px dashed #FFFFFF" href="tel:4000072972">
					<span class="icon icon-phone"></span>
					<span class="tab-label">一键拨打</span>
				</a>
            </nav>
		</div>
		<span class="bottom_footer">广州市柏澳景观设计有限公司 版权所有</span>
</div>
<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
</body>
</html>